package com.scm.erp.framework;

import oel.sendSocket;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.ConfigurableApplicationContext;

import java.net.Socket;

@SpringBootApplication
@ServletComponentScan
public class FrameworkApplication {
    public static void main(String[] args) {
        ConfigurableApplicationContext configurableApplicationContext = SpringApplication.run(FrameworkApplication.class, args);
        if (configurableApplicationContext.isRunning()==true) {
            Socket socket = null;
            try {
//                socket = sendSocket.connectPs();
                if(!socket.isClosed()) {
                    System.out.println("========== 启动外嵌TCP端口 ==========");
                }
            }catch (Exception e){
                System.out.println("========== 启动外嵌TCP端口失败 ==========");
            }
            System.out.println("========== Spring 日志已经启动欢迎使用-WWW.SnailCatMall.COM ==========");
        }
    }

}
